import axios from '@/api/fetch';
import SERVER from '@/api/server';

// 消息代办分页查询
export const getList = (params) => axios.get(`${SERVER.CMSCLOUD_MESSAGE}/task/todoTask`, { params });

export const getTodoList = (params) => axios.get(`${SERVER.CMSCLOUD_MESSAGE}/task/todoTask/getTodoList`, { params });

export const addReadRecord = (params) => axios.post(`${SERVER.CMSCLOUD_MESSAGE}/task/todoTaskLog`, params, {menuId:'-1'});

export const getTotalCount = (params) => axios.get(`${SERVER.CMSCLOUD_MESSAGE}/task/todoTask/getTotalCount`, { params });
export const getMessageCount = (params) => axios.get(`${SERVER.CMSCLOUD_MESSAGE}/task/todoTask/getMessageCount`);
